import { homeImage } from "./images/home"
const { get } = require("lodash")

export const icons = {
  tabBarIcon: {
    betRecord: {
      default: require("./icons/home_nav_note.png"),
      active: require("./icons/home_nav_note2.png")
    },
    sport: {
      default: require("./icons/home_nav_physical_culture.png"),
      active: require("./icons/home_nav_physical_culture2.png")
    },
    entertainment: {
      default: require("./icons/home_nav_recreation.png"),
      active: require("./icons/home_nav_recreation2.png")
    },
    mine: {
      default: require("./icons/home_nav_my.png"),
      active: require("./icons/home_nav_my2.png")
    }
  },
  warn: require("./icons/exclamation_mark.png"),
  scanBankCard: require("./icons/add_a_bank_card_scanning.png"),
  sportsNavigationSetting: require("./icons/sports_navigation_icon_setting.png"),
  navigationWallet: require("./icons/navigation_icon_wallet.png"),
  backLocation: require("./icons/page_return_arrow.png")
}

export const statusIcon = (namePath, isActive) => {
  return isActive
    ? get(icons, `[${namePath}].active`, null)
    : get(icons, `${namePath}.default`, null)
}

export const images = {
  home: {
    leftIcon: require("./images/home/home_menu.png"),
    rightIcon: require("./images/home/customer_service.png"),
    noteIcon: require("./images/home/my_note.png"),
    logoIcon: require("./images/home/logo.png"),
    notcollected: require("./images/home/item/not_collected.png"),
    collected: require("./images/home/item/collected.png"),
    goRightGrayIcon: require("./images/home/icon_arrow_right_gray.png")
  },
  splash: {
    bgIcon: require("./images/splash/splash_bg.jpg")
  },
  tabBar: {
    bg: require("./images/tabbar/home-nav-bg.png"),
    icons: {
      home: require("./images/tabbar/home_nav_home.png"),
      homeSelect: require("./images/tabbar/home_nav_home2.png"),
      event: require("./images/tabbar/home_nav_event.png"),
      eventSelect: require("./images/tabbar/home_nav_event2.png"),
      rollingBall: require("./images/tabbar/home_nav_rolling_ball.png"),
      rollingBallSelect: require("./images/tabbar/home_nav_rolling_ball2.png"),
      collection: require("./images/tabbar/home_nav_collection.png"),
      collectionSelect: require("./images/tabbar/home_nav_collection2.png"),
      mine: require("./images/tabbar/home_nav_my.png"),
      mineSelect: require("./images/tabbar/home_nav_my2.png")
    }
  },
  public: {
    activity: {
      firstDepositOffer: require("./images/public/01-first-deposit-offer.png")
    }
  },
  betRecord: {},
  sport: {
    index: {
      defaultBannerImage: require("./images/sport/banner-default.png"),
      topInPlayTitle: require("./images/sport/top-in-play-title.png"),
      topEventBg: require("./images/sport/top-event-bg.png"),
      defalutTeamLogo: require("./images/sport/even-default-team.png")
    }
  },
  entertainment: {
    banner: {
      demoList: [
        { uri: "http://m.ld1121.com/api/gl/file/files/5d3955c8f409c252cbb545c5.jpg" },
        { uri: "http://m.ld1121.com/api/gl/file/files/5d3955d8f409c252cbb545cb.jpg" },
        { uri: "http://m.ld1121.com/api/gl/file/files/5d3955e9f409c252cbb545d1.jpg" }
      ]
    },
    index: {
      liveTitle: require("./images/entertainment/live-title.png"),
      chessTitle: require("./images/entertainment/chess-title.png"),
      electronTitle: require("./images/entertainment/electron-title.png"),
      lotteryTitle: require("./images/entertainment/lottery-title.png")
    },
    entry: {
      chess: {
        ld: require("./images/entertainment/chess/ld.png")
      },
      electron: {
        agElectron: require("./images/entertainment/electron/ag-electron.png"),
        agFish: require("./images/entertainment/electron/ag-fish.png"),
        mwElectron: require("./images/entertainment/electron/mw-electron.png"),
        mwFish: require("./images/entertainment/electron/mw-fish.png")
      },
      live: {
        ag: require("./images/entertainment/live/ag.png")
      },
      lottery: {
        "5gm": require("./images/entertainment/lottery/5gm.png")
      },
      sport: {
        ld: require("./images/entertainment/sport/ld.png")
      }
    }
  },
  mine: {
    icons: {
      wallet: require("./images/mine/wallet.png"),
      recharge: require("./images/mine/recharge.png"),
      withdraw: require("./images/mine/withdraw.png"),
      listFundDetails: require("./images/mine/list_fund_details.png"),
      listBettingRecord: require("./images/mine/list_betting_record.png"),
      listSecurityCenter: require("./images/mine/list_security_center.png"),
      listLetter: require("./images/mine/list_letter.png"),
      listPromotions: require("./images/mine/list_promotions.png"),
      listAgencyCooperation: require("./images/mine/list_agency_cooperation.png"),
      listSponsorshipInformation: require("./images/mine/list_sponsorship_information.png"),
      listHelpCenter: require("./images/mine/list_help_center.png"),
      listGameTutorial: require("./images/mine/list_game_tutorial.png"),
      listShareIt: require("./images/mine/list_share_it.png"),
      listAboutUs: require("./images/mine/list_about_us.png"),
      listVersionNumber: require("./images/mine/list_version_number.png"),
      listDropOut: require("./images/mine/list_drop_out.png")
    },
    betRecord: {
      winGame: require("./images/mine/bet-record/win.png"),
      winHalfGame: require("./images/mine/bet-record/win_half.png"),
      fliter: require("./images/mine/bet-record/filter.png"),
      fliterBlue: require("./images/mine/bet-record/filter_blue.png")
    }
  },
  login: {
    loginBg: require("./images/login/login-bg.png"),
    ballbet: require("./images/login/ballbet.png"),
    sponsor: require("./images/login/sponsor.png"),
    icons: {
      logInUser: require("./images/login/icons/log_in_user.png"),
      password: require("./images/login/icons/Password_password.png"),
      passwordEyeClose: require("./images/login/icons/password_eye_close.png"),
      passwordEyeOpen: require("./images/login/icons/password_eye_open.png"),
      clear: require("./images/login/icons/clear.png"),
      rememberPswCheck: require("./images/login/icons/remember_passwor_checked.png"),
      rememberPswUnCheck: require("./images/login/icons/remember_passwor_unchecked.png"),
      logInMobile: require("./images/login/icons/log_in_mobile_phone.png"),
      logInVertify: require("./images/login/icons/log_in_verification_code.png"),
      pageShutDown2: require("./images/login/icons/page_shut_down2.png")
    }
  },
  eventDetail: {
    headerBg: require("./images/event-detail/event-detail-header.png")
  },
  noneData: {
    pageNoContent: require("./images/none-data/page_no_content.png"),
    pageNoData: require("./images/none-data/page_no_data.png"),
    pageNoMatch: require("./images/none-data/page_no_match.png"),
    pageNoMessage: require("./images/none-data/page_no_message.png"),
    pageNoNetWork: require("./images/none-data/page_no_network.png")
  },
  homeImage
}
